package org.socialgr.impl.domain;

public class Persona {

	private long dni;
	
	public Persona(long dni){
		this.dni = dni;
	}
	
	public long getDni(){
		return this.dni;
	}
	
	public boolean equals(Persona p){
		return  dni == p.getDni();
	}

	public int hashCode(){
		int hash=2;
        return (int) (hash*dni);
	}
}
